package com.ljx.itbbs.server.article.service;

import com.ljx.itbbs.common.domain.model.LoginUser;
import com.ljx.itbbs.common.domain.vo.resp.PageResp;
import com.ljx.itbbs.server.article.domain.entity.ArticleDraftEntity;
import com.ljx.itbbs.server.article.domain.entity.ArticleEntity;
import com.ljx.itbbs.server.article.domain.vo.req.ArticleListReq;
import com.ljx.itbbs.server.article.domain.vo.req.ArticleUpdateReq;
import com.ljx.itbbs.server.article.domain.vo.resp.ArticleInfoResp;

public interface ArticleDraftService {


    void saveArticleDraft(ArticleDraftEntity articleDraftEntity);

    ArticleDraftEntity getArticleDraft(Long articleId);

    PageResp<ArticleInfoResp> getArticleDraftList(LoginUser loginUser, ArticleListReq articleListReq);

    void updateDraft(Long userId, ArticleUpdateReq req);

    void deleteDraftArticle(Long userId, Long articleId);
}
